<html>
<head>
</head>
<body>
<script type="text/javascript">
var num = 600851475143;
var temp = 2;
var mult = 1;
while (mult <= num)
{
	if((num % temp) == 0)
	{
		num = num/temp;
		mult = temp;
		temp = 2;
	}
	else
	{
		temp++;
	}
}
document.write(mult);
</script>
</body>
</html>